package com.tedu.review.test;

public abstract class Zuoye {
    public abstract void eat();
    public abstract void sleep();

    public static void main(String[] args) {
        Zuoye j=new Zuoye(){


            public void eat() {
                System.out.println("吃");
            }


            public void sleep() {
                System.out.println("睡");
            }
        };
        j.eat();
        j.sleep();
    }
}
